﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.EXCERCISES.EXCERCISE_04
{
    class Nguoi: DongVat
    {
        string  Noi, KhieuVu;
        double Tay;

public double TAY
{
  get { return Tay; }
  set { Tay = value; }
}

        public Nguoi(string ten, double chan, double mat, string chay, string ngu, string nhay, double tay, string noi, string khieuvu): base(ten, chan, mat, chay, ngu , nhay)
        {
            Tay = tay;
            Noi = noi;
            KhieuVu = khieuvu;
        }

        public string KHIEUVU
        {
            get { return KhieuVu; }
            set { KhieuVu = value; }
        }

        public string NOI
        {
            get { return Noi; }
            set { Noi = value; }
        }

       



    }
}
